package com.zp.demo.service.impl;

import com.zp.demo.entity.Result;
import com.zp.demo.repush.service.func.IsSucessFunc;

public class IsSucessResult implements IsSucessFunc<Result> {
    @Override
    public boolean isSucess(Result result) {
        if(result.getCode() > 0){
            return true;
        }
        return false;
    }
}
